﻿using Tszy.Unlimited.Base.Exceptions;

namespace Tszy.Unlimited.Base.Infrastructure.Mappers;

/// <summary>
/// 
/// </summary>
public class MapperException : MainApplicationException
{
    /// <summary>
    /// 
    /// </summary>
    /// <param name="errorMessage"></param>
    /// <param name="result"></param>
    /// <param name="innerException"></param>
    public MapperException(string errorMessage, object? result = null, Exception? innerException = null) : base(errorMessage, result, innerException)
    {
    }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="errorCode"></param>
    /// <param name="errorMessage"></param>
    /// <param name="innerException"></param>
    public MapperException(int errorCode, string errorMessage, Exception? innerException) : base(errorCode, errorMessage, innerException)
    {
    }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="errorCode"></param>
    /// <param name="errorMessage"></param>
    /// <param name="innerException"></param>
    /// <param name="result"></param>
    public MapperException(int errorCode, string errorMessage, Exception? innerException, object? result) : base(errorCode, errorMessage, innerException, result)
    {
    }
}
